import axios from 'axios';

const api=process.env.REACT_APP_RECORDS_API_URL 

export const getAll=()=>axios.get(`${api}`)

export const create=(body)=>axios.post(`${api}`,body)

export const update=(body)=>axios.put(`${api}`,body)

export const remove=(id)=>axios.delete(`${api}`)